package com.itheima.a07threadmethod4;

public class MyThread extends Thread{
    @Override
    public void run() {
        for(int i=1;i<=100;i++){
            System.out.println(getName()+"2"+i);
            //表示让出cpu的执行权
            Thread.yield();
        }
    }
}
